home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2005 October / PCWOCT05.iso / Software / FromTheMag / Syn Text Editor 2.1.0.46 / synsetup-2.1.0.46.exe / {app} / scripts / consts.vbs < prev    next >
Text File  |  2003-08-13  |  11KB  |  309 lines

  1. '
  2. '  syn
  3. '  Copyright (C) 2000-2003, Ascher Stefan. All rights reserved.
  4. '  stievie@utanet.at, http://web.utanet.at/ascherst/
  5. '
  6. '  The contents of this file are subject to the Mozilla Public License
  7. '  Version 1.1 (the "License"); you may not use this file except in compliance
  8. '  with the License. You may obtain a copy of the License at
  9. '  http://www.mozilla.org/MPL/
  10. '
  11. '  Software distributed under the License is distributed on an "AS IS" basis,
  12. '  WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
  13. '  the specific language governing rights and limitations under the License.
  14. '
  15. '  The Original Code is consts.vbs, released Sun, 26 May 2002 10:55:39 UTC.
  16. '
  17. '  The Initial Developer of the Original Code is Ascher Stefan.
  18. '  Portions created by Ascher Stefan are Copyright (C) 2000-2003 Ascher Stefan.
  19. '  All Rights Reserved.
  20. '
  21. '  Contributor(s): .
  22. '
  23. '  Alternatively, the contents of this file may be used under the terms of the
  24. '  GNU General Public License Version 2 or later (the "GPL"), in which case
  25. '  the provisions of the GPL are applicable instead of those above.
  26. '  If you wish to allow use of your version of this file only under the terms
  27. '  of the GPL and not to allow others to use your version of this file
  28. '  under the MPL, indicate your decision by deleting the provisions above and
  29. '  replace them with the notice and other provisions required by the GPL.
  30. '  If you do not delete the provisions above, a recipient may use your version
  31. '  of this file under either the MPL or the GPL.
  32. '
  33. '  You may retrieve the latest version of this file at the syn home page,
  34. '  located at http://syn.sourceforge.net/
  35. '
  36. ' $Id: consts.vbs,v 1.5.2.5 2003/08/13 00:38:45 neum Exp $
  37.  
  38. ' Registry Key where syn saves all Settings
  39. const SynRegKey = "HKCU\Software\Ascher\syn"
  40.  
  41. ' syn Commands for use with ExecCommand method
  42. 'Edit
  43. const scEAnsiToOem          =  0
  44. const scEAppendCut          =  1
  45. const scEAppenCopy          =  2
  46. const scEBlockSave          =  3
  47. const scEBlockSort          =  4
  48. const scECheckSpelling      =  5
  49. const scEComment            =  6
  50. const scECopy               =  7
  51. const scECut                =  8
  52. const scEOutdent            =  9
  53. const scEDelete             = 10
  54. const scEDeleteLine         = 11
  55. const scEDeleteToBOL        = 12
  56. const scEDeleteToEOL        = 13
  57. const scEDeleteWord         = 14
  58. const scEDuplicateLines     = 15
  59. const scEEncoding           = 16
  60. const scEFormatLines        = 17
  61. const scEIndent             = 18
  62. const scEInsertDateTime     = 19
  63. const scEInsertFile         = 20
  64. const scEJoinLines          = 21
  65. const scELeadingTabsToSpace = 22
  66. const scELeadingSpaceToTabs = 23
  67. const scEOEMToAnsi          = 24
  68. const scEPaste              = 25
  69. const scERedo               = 26
  70. const scECapitalize         = 27
  71. const scESelectAll          = 28
  72. const scESelectLine         = 29
  73. const scETabsToSpace        = 30
  74. const scEUncomment          = 31
  75. const scEUndo               = 32
  76. 'Search
  77. const scSFind               = 33
  78. const scSFindNext           = 34
  79. const scSFindPrev           = 35
  80. const scSFindNextWord       = 36
  81. const scSFindPrevWord       = 37
  82. const scSIncrSearchForward  = 38
  83. const scSIncrSearchBackward = 39
  84. const scSReplace            = 40
  85. const scSGoto               = 41
  86. const scSGotoPrevOutput     = 42
  87. const scSGotoNextOutput     = 43
  88. const scSGotoLastChange     = 44
  89. const scSMatchBracket       = 45
  90. const scSShowCaret          = 46
  91. 'File
  92. const scFReopen             = 47
  93. const scFSave               = 48
  94. const scFSaveAs             = 49
  95. const scFSaveFTP            = 50
  96. const scFERxportHTML        = 51
  97. const scFExportRTF          = 52
  98. const scFClose              = 53
  99. const scFProperties         = 54
  100. const scFPrint              = 55
  101. const scFPrintPreview       = 56
  102.  
  103. ' syn Edit Commands for use with ExecEditCommand method
  104. const ecNone                = &H00000000
  105. const ecLeft                = &H00000001
  106. const ecRight               = &H00000002
  107. const ecUp                  = &H00000003
  108. const ecDown                = &H00000004
  109. const ecWordLeft            = &H00000005
  110. const ecWordRight           = &H00000006
  111. const ecLineStart           = &H00000007
  112. const ecLineEnd             = &H00000008
  113. const ecPageUp              = &H00000009
  114. const ecPageDown            = &H0000000A
  115. const ecPageLeft            = &H0000000B
  116. const ecPageRight           = &H0000000C
  117. const ecPageTop             = &H0000000D
  118. const ecPageBottom          = &H0000000E
  119. const ecEditorTop           = &H0000000F
  120. const ecEditorBottom        = &H00000010
  121. const ecGotoXY              = &H00000011
  122.  
  123. const ecSelLeft             = &H00000065
  124. const ecSelRight            = &H00000066
  125. const ecSelUp               = &H00000067
  126. const ecSelDown             = &H00000068
  127. const ecSelWordLeft         = &H00000069
  128. const ecSelWordRight        = &H0000006A
  129. const ecSelLineStart        = &H0000006B
  130. const ecSelLineEnd          = &H0000006C
  131. const ecSelPageUp           = &H0000006D
  132. const ecSelPageDown         = &H0000006E
  133. const ecSelPageLeft         = &H0000006F
  134. const ecSelPageRight        = &H00000070
  135. const ecSelPageTop          = &H00000071
  136. const ecSelPageBottom       = &H00000072
  137. const ecSelEditorTop        = &H00000073
  138. const ecSelEditorBottom     = &H00000074
  139. const ecSelGotoXY           = &H00000075
  140.  
  141. const ecSelectAll           = &H000000C7
  142. const ecCopy                = &H000000C9
  143.  
  144. const ecScrollUp            = &H000000D3
  145. const ecScrollDown          = &H000000D4
  146. const ecScrollLeft          = &H000000D5
  147. const ecScrollRight         = &H000000D6
  148.  
  149. const ecInsertMode          = &H000000DD
  150. const ecOverwriteMode       = &H000000DE
  151. const ecToggleMode          = &H000000DF
  152.  
  153. const ecNormalSelect        = &H000000E7
  154. const ecColumnSelect        = &H000000E8
  155. const ecLineSelect          = &H000000E9
  156.  
  157. const ecMatchBracket        = &H000000FA
  158.  
  159. const ecGotoMarker0         = &H0000012D
  160. const ecGotoMarker1         = &H0000012E
  161. const ecGotoMarker2         = &H0000012F
  162. const ecGotoMarker3         = &H00000130
  163. const ecGotoMarker4         = &H00000131
  164. const ecGotoMarker5         = &H00000132
  165. const ecGotoMarker6         = &H00000133
  166. const ecGotoMarker7         = &H00000134
  167. const ecGotoMarker8         = &H00000135
  168. const ecGotoMarker9         = &H00000136
  169. const ecSetMarker0          = &H0000015F
  170. const ecSetMarker1          = &H00000160
  171. const ecSetMarker2          = &H00000161
  172. const ecSetMarker3          = &H00000162
  173. const ecSetMarker4          = &H00000163
  174. const ecSetMarker5          = &H00000164
  175. const ecSetMarker6          = &H00000165
  176. const ecSetMarker7          = &H00000166
  177. const ecSetMarker8          = &H00000167
  178. const ecSetMarker9          = &H00000168
  179.  
  180. const ecContextHelp         = &H000001EA
  181.  
  182. const ecDeleteLastChar      = &H000001F5
  183. const ecDeleteChar          = &H000001F6
  184. const ecDeleteWord          = &H000001F7
  185. const ecDeleteLastWord      = &H000001F8
  186. const ecDeleteBOL           = &H000001F9
  187. const ecDeleteEOL           = &H000001FA
  188. const ecDeleteLine          = &H000001FB
  189. const ecClearAll            = &H000001FC
  190. const ecLineBreak           = &H000001FD
  191. const ecInsertLine          = &H000001FE
  192. const ecChar                = &H000001FF
  193.  
  194. const ecImeStr              = &H00000226
  195.  
  196. const ecUndo                = &H00000259
  197. const ecRedo                = &H0000025A
  198. const ecCut                 = &H0000025B
  199. const ecPaste               = &H0000025C
  200.  
  201. const ecBlockIndent         = &H00000262
  202. const ecBlockUnindent       = &H00000263
  203. const ecTab                 = &H00000264
  204. const ecShiftTab            = &H00000265
  205.  
  206. const ecAutoCompletion      = &H0000028A
  207.  
  208. const ecUpperCase           = &H0000026C
  209. const ecLowerCase           = &H0000026D
  210. const ecToggleCase          = &H0000026E
  211. const ecTitleCase           = &H0000026F
  212.  
  213. const ecString              = &H00000276
  214. const ecGotFocus            = &H000002BC
  215. const ecLostFocus           = &H000002BD
  216.  
  217. ' Character Encoding
  218. const cpWin1251     = 0
  219. const cpKOI8R       = 1
  220. const cpISO88592    = 2
  221. const cpISO88595    = 3
  222. const cpISO88597    = 4
  223. const cpDOS866      = 5
  224. const cpMacCE       = 6  ' Centeral European
  225. const cpMacCyrillic = 7
  226. const cpMacGreek    = 8
  227.  
  228. ' Export Type
  229. const etHTML  = 0
  230. const etRTF   = 1
  231. const etTeX   = 2
  232.  
  233. ' Linebreak
  234. const lbNoChange = 0
  235. const lbWindows  = 1
  236. const lbUNIX     = 2
  237. const lbMac      = 3
  238.  
  239. ' ModalResult constants
  240. const mrNone     = 0
  241. const mrOK       = 1
  242. const mrCancel   = 2
  243. const mrAbort    = 3
  244. const mrRetry    = 4
  245. const mrIgnore   = 5
  246. const mrYes      = 6
  247. const mrNo       = 7
  248. const mrAll      = 8
  249. const mrNoToAll  = 9
  250. const mrYesToAll = 10
  251.  
  252. ' Cursors
  253. const crDefault   =  0
  254. const crNone      = -1
  255. const crArrow     = -2
  256. const crCross     = -3
  257. const crIBeam     = -4
  258. const crSizeNESW  = -6
  259. const crSizeNS    = -7
  260. const crSizeNWSE  = -8
  261. const crSizeWE    = -9
  262. const crUpArrow   = -10
  263. const crHourGlass = -11
  264. const crDrag      = -12
  265. const crNoDrop    = -13
  266. const crHSplit    = -14
  267. const crVSplit    = -15
  268. const crMultiDrag = -16
  269. const crSQLWait   = -17
  270. const crNo        = -18
  271. const crAppStart  = -19
  272. const crHelp      = -20
  273. const crHandPoint = -21
  274. const crSizeAll   = -22
  275.  
  276. ' Window State
  277. const wsNormal    = 0
  278. const wsMinimized = 1
  279. const wsMaximized = 2
  280.  
  281. ' Browse for Folder
  282. const BIF_RETURNONLYFSDIRS   = &H0001
  283. const BIF_DONTGOBELOWDOMAIN  = &H0002
  284. const BIF_STATUSTEXT         = &H0004
  285. const BIF_RETURNFSANCESTORS  = &H0008
  286. const BIF_EDITBOX            = &H0010
  287. const BIF_VALIDATE           = &H0020
  288. const BIF_BROWSEFORCOMPUTER  = &H1000
  289. const BIF_BROWSEFORPRINTER   = &H2000
  290. const BIF_BROWSEINCLUDEFILES = &H4000
  291. const BSF_DESKTOP            = 0    'Desktop is the root directory. With BIF_RETURNONLYFSDIRS circumvents problem with OK-button
  292. const BSF_INTERNETEXPLORER   = 1    'Internet Explorer is the root
  293. const BSF_PROGRAMS           = 2    'Programs folder of the start menu is the root
  294. const BSF_CONTROLPANEL       = 3    'Control Panel is the root. Needs BIF_BROWSEINCLUDEFILES
  295. const BSF_PRINTERS           = 4    'Printers folder is the root. Needs BIF_BROWSEINCLUDEFILES
  296. const BSF_DOCUMENTS          = 5    'Documentsfolder is the root
  297. const BSF_FAVORITES          = 6    'Favorites is the root
  298. const BSF_STARTUP            = 7    'Startup-folder of the startmenu is the root. Needs BIF_BROWSEINCLUDEFILES
  299. const BSF_RECENT             = 8    'Recentfolder is the root. Needs BIF_BROWSEINCLUDEFILES
  300. const BSF_SENDTO             = 9    'Sendto-folder is the root. Needs BIF_BROWSEINCLUDEFILES
  301. const BSF_RECYCLEBIN         = 10   'Recycle Bin is the root. Needs BIF_BROWSEINCLUDEFILES
  302. const BSF_STARTMENU          = 11   'Start Menu is the root
  303. const BSF_DESKTOPDIRECTORY   = 16   'The Desktopdirectory is the root directory
  304. const BSF_DRIVES             = 17   'The drives (My computer) folder is the root
  305. const BSF_NETWORK            = 18   'The networkneighbourhood is the root
  306. const BSF_NETHOOD            = 19   'The nethoodfolder is the root
  307. const BSF_FONTS              = 20   'The fontsfolder is the root
  308. const BSF_TEMPLATES          = 21   'The templatesfolder is the root
  309.